#ifndef GATLING_BULLET_H
#define GATLING_BULLET_H

#include "consts.h"
#include "collisia_control.h"

class GATLING_BULLET : public QGraphicsObject
{
    Q_OBJECT
private:
    COLLISIA_CONTROL *collisia_control;
    QPainterPath *border;

    int speed;
    QPixmap *pix;

public:
    CASH *cash;
    int point;

public:
    explicit GATLING_BULLET(QPointF start_point, QTimeLine *global_tl, SCENE *scene, CASH *cash);
    ~GATLING_BULLET();

    QRectF boundingRect() const;
    QPainterPath shape() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    int type() const;

public slots:
    void slot_run();
    void Damage_Detected(QPointF a,int d);
    void set_shape();
    
};

#endif // GATLING_BULLET_H
